<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link href="../../css/general1.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="../../script/prototype.js"></script>
		<script type="text/javascript" src="/vchzms-hiaward/dwr/engine.js"> </script>
		<script type="text/javascript" src="/vchzms-hiaward/dwr/util.js"> </script>
		<script type="text/javascript" src="/vchzms-hiaward/dwr/interface/SetKeyAndValueDwrAction.js"></script>
		<script type="text/javascript" src="/vchzms-hiaward/dwr/interface/OperatePbcFileDwrAction.js"></script>
		<title>人行文件预处理</title>
		
	</head>
	<body>
	
		<div style="left: 200px; top: 100px; position: absolute">
			<table class='tablist1' width="250px">
				<tr class="title2">
					<td colspan="2">
						预处理情况
					</td>
				</tr>
				<tr>
					<th width="100px">
						已预处理数据
					</th>
					<td>&nbsp;&nbsp;&nbsp;<span id="pretreated"></span></td>
				</tr>
				<tr>
					<th>
						待预处理数据
					</th>
					<td>&nbsp;&nbsp;&nbsp;<span id="unpretreated"></span></td>
				</tr>
				<tr>
					<td colspan="2">
						<button class="btn1">
							预处理
						</button>
					</td>
				</tr>
			</table>
		</div>
		<script type="text/javascript">
        var localUrl=window.location.href;
        var pos=localUrl.indexOf('=');
        var param=localUrl.substring(pos+1);
        //alert(param);
        var configData=new Object();
        //var date,session;
        configData.subno=param;
        //configData.key="VCHZMS_PBCDATA_DATE";
        var date=null;
         var session=null;
        SetKeyAndValueDwrAction.getConfigDataByProperties(configData,function(data){
         alert(data.length+"======>");
         for(var i=0;i<data.length;i++){
            alert(data[i].subno);
            if(data[i].key=='VCHZMS_PBCDATA_DATE'){
              date=data[i].value;
            }
            if(data[i].key=='VCHZMS_PBC_SESSION'){
             session=data[i].value;
             //alert(session);
            }
         }
        });
       var originalPbcData=new Object();
       originalPbcData.subno=param;
       originalPbcData.vcsession=session;
       originalPbcData.vchdate=date;
       originalPbcData.state=1;
       OperatePbcFileDwrAction.getOriginalPbcFileCountByProp(originalPbcData,function(data){
         //alert(data);
         $('pretreated').innerHTML=data;
       });
       originalPbcData.state=2;
       OperatePbcFileDwrAction.getOriginalPbcFileCountByProp(originalPbcData,function(data){
         $('unpretreated').innerHTML=data;
       });
		</script>
	</body>
</html>